package dataPO;

public class UserPO extends InfoPO {

	private static final long serialVersionUID = 1L;
	
	private String userID;
	private String password;
	private String name;
	private String userType;
	private String grade;
	private String department;
	private String authorityLevel;
	
	public UserPO(String userID, String password, String name, String userType, 
	        String grade, String department, String authorityLevel) {
		super(InfoPO.User);
		this.userID = userID;
		this.password = password;
		this.name = name;
		this.grade = grade;
		this.department = department;
		this.userType = userType;
		this.authorityLevel = authorityLevel;
	}
	
	public String getName() {
		return name;
	}

	public String getGrade() {
		return grade;
	}

	public String getDepartment() {
		return department;
	}

	public String getUserID() {
		return userID;
	}
	
	public String getPassword() {
		return password;
	}

	public String getUserType() {
		return userType;
	}

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String[] toArray() {
        return new String[]{this.userID, this.password, this.name, this.userType, this.grade, this.department, this.authorityLevel};
    }

    public String[] getArrayForShow(){
        return new String[]{this.userID, this.userType, this.name, this.department, this.grade};
    }

    public String getAuthorityLevel() {
        return authorityLevel;
    }

}
